package com.onlinemovies.entity;

import java.io.Serializable;
import java.util.Collection;

import javax.persistence.CascadeType;
import javax.persistence.Column;
import javax.persistence.Entity;
import javax.persistence.GeneratedValue;
import javax.persistence.GenerationType;
import javax.persistence.Id;
import javax.persistence.OneToMany;
import javax.persistence.Table;
import javax.persistence.Transient;


@Entity
@Table(name="HallDetails")
public class HallDetails implements Serializable{

	  
    private static final long serialVersionUID = 1L;
     
    @Id
    @GeneratedValue(strategy=GenerationType.AUTO)
    @Column(name="id")
    private long id;
   
    @Column(name="hallname")
    private String hallname;
    
    @Column(name="location")
    private String location;
    
    @Column(name="city")
    private String city;
    
    @Column(name="hallph")
    private String hallph;
    
    
    @Column(name="status")
    private String status;

    @Transient
    private String det;
   /* @OneToMany(cascade = CascadeType.ALL, mappedBy = "hallDetails")
	private Collection<HallDetails> hallDetailscollection;
*/
	public long getId() {
		return id;
	}


	public void setId(long id) {
		this.id = id;
	}


	public String getHallname() {
		return hallname;
	}


	public void setHallname(String hallname) {
		this.hallname = hallname;
	}


	public String getLocation() {
		return location;
	}


	public void setLocation(String location) {
		this.location = location;
	}


	public String getCity() {
		return city;
	}


	public void setCity(String city) {
		this.city = city;
	}


	public String getHallph() {
		return hallph;
	}


	public void setHallph(String hallph) {
		this.hallph = hallph;
	}


	public String getStatus() {
		return status;
	}


	public void setStatus(String status) {
		this.status = status;
	}


	public String getDet() {
		det=hallname+" - "+location+" - "+city;
		return det;
	}


	public void setDet(String det) {
		this.det = det;
	}
}
